package ink.xiaobaibai.common.delay;

import java.util.Date;

/**
 * @description: 机器延时消息(添加自定义消息版)
 * @author: 小白白
 * @create: 2021-05-31
 **/

public class DeviceDelayItemAddMsg extends DeviceDelayItem {


    public DeviceDelayItemAddMsg(String orderOrMsg, Integer deviceId, Date expiredTime) {
        super(deviceId, expiredTime);
        this.orderOrMsg = orderOrMsg;
    }

    private String orderOrMsg;

    public String getOrderOrMsg() {
        return this.orderOrMsg;
    }

    @Override
    public int hashCode() {
        return super.getDeviceId();
    }

    @Override
    public boolean equals(Object obj) {
        return super.getDeviceId().equals(((DeviceDelayItem) obj).getDeviceId());
    }

}
